<!doctype html>
<html>

<head>
    <title>歌曲列表</title>
    <meta charset="utf-8" />
    <style>
        table,
        td {
            border-collapse: collapse;
        }

        td {
            padding: 20px 10px;
        }
    </style>
</head>

<body>
    <table border="1">
        <tr>
            <td>ID</td>
            <td>歌手名称</td>
            <td>歌曲</td>
        </tr>
        <% for(let i=0;i<data.length;i++){ %>
            <tr>
                <td>
                    <%= data[i].id %>
                </td>
                <td>
                    <%= data[i].name %>
                </td>
                <td>
                    <%= data[i].song %>
                </td>
            </tr>
        <% } %>
    </table>
</body>

</html>